<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>员工信息列表</title>
</head>
<body>
<div style="text-align: center;">
	<h1>员工信息列表</h1>
	<table border="1" width="90%">
		<tr>
			<th>ID</th>
			<th>员工名字</th>
			<th>所属部门</th>
			<th>员工头像</th>
			<th>出生日期</th>
			<th>入职日期</th>
			<th>相关信息</th>
		</tr>
		 <?php
                        foreach($emplist as $row)
                        {
                        ?>
		<tr>
			<th><?php echo $row['e_id']?></th>
			<th><?php echo $row['e_name']?></th>
			<th><?php echo $row['e_dept']?></th>
			<th><img src="<?php echo $row['e_img']?>" alt=""></th>
			<th><?php echo $row['date_of_birth']?></th>
			<th><?php echo $row['date_of_entry']?></th>
			<th>
			<a href="">编辑</a>
			<a href="">删除</a>
			</th>
		</tr>
		 <?php
                   }
                        ?>
	</table>
	<div>
			<h2>添加员工</h2>
			<form action="bbsadd.php" method="post">
			<table border="1" width="50%">
			<tr>
			<th>姓名</th>
			<td><input class="name" name="e_name" type="text" placeholder="请输入你的姓名" /></td>
			</tr>
			<tr>
			<th>所属部门</th>
			<td><input class="dept" name="e_dept" type="text" placeholder="请输入部门" /></td>
			</tr>
			<tr>
			<th>头像</th>
			<td>
			        <input type="radio" name="e_img" value="images/1.jpg" checked="checked" /><img src=" images/1.jpg" alt="" height="80px" width="80px" />
					<input type="radio" name="e_img" value="images/2.jpg" /><img src=" images/2.jpg" alt="" height="80px" width="80px" />
					<input type="radio" name="e_img" value="images/3.jpg" /><img src=" images/3.jpg" alt="" height="80px" width="80px" />
					<input type="radio" name="e_img" value="images/4.jpg" /><img src=" images/4.jpg" alt="" height="80px" width="80px" /></td>
			</tr>
			<tr>
			<th>出生日期</th>
			<td><input type="datetime-local" name="date_of_birth" /></td>
			</tr>
			<tr>
			<th>入职日期</th>
			<td><input type="datetime-local" name="date_of_entry" /></td>
			</tr>
			<tr>
			<th></th>
			<td><input type="submit" value="添加员工"></td>
			</tr>
			</table>
</div>
</div>
	
</body>
</html>